package org.koyad.portal.tags.piston;

import org.koyad.portal.annotations.TagCordinates;
import org.koyad.portal.annotations.TagType;
import org.koyad.portal.constants.FrameworkConstants;
import org.koyad.portal.context.PistonContext;
import org.koyad.portal.tags.AbstractTag;
import org.koyad.portal.utils.LogUtils;

@TagCordinates (
	uri = FrameworkConstants.PORTAL_NAMESPACE,
	localName = "includePage",
	type = TagType.NOBODY 
)
public class IncludePageTag extends AbstractTag {
	
	private static final LogUtils LOGGER = LogUtils.getLogger(IncludePageTag.class);
	
	@Override
	public void render() {
		PistonContext.getContext().getViewRoot().getPage().render();
	}
}
